package com.shopping.cart.entity;

import java.time.LocalDate;
import java.util.List;

/**
 * 购物清单，包含各类信息
 *
 * @author qxf101
 * @since 2021-05-10
 */
public class ShoppingList {
    /**
     * 促销信息集合
     */
    private List<PromotionMessage> promotionMessageList;
    /**
     * 商品列表
     */
    private List<Product> productList;
    /**
     * 结算日期（付款日期/购买日期）
     */
    private LocalDate settleDate;
    /**
     * 优惠券信息
     */
    private List<Coupon> couponList;

    public ShoppingList(List<PromotionMessage> promotionMessageList, List<Product> productList,
                        LocalDate settleDate, List<Coupon> couponList) {
        this.promotionMessageList = promotionMessageList;
        this.productList = productList;
        this.settleDate = settleDate;
        this.couponList = couponList;
    }

    public List<PromotionMessage> getPromotionMessageList() {
        return promotionMessageList;
    }

    public void setPromotionMessageList(List<PromotionMessage> promotionMessageList) {
        this.promotionMessageList = promotionMessageList;
    }

    public List<Product> getProductList() {
        return productList;
    }

    public void setProductList(List<Product> productList) {
        this.productList = productList;
    }

    public LocalDate getSettleDate() {
        return settleDate;
    }

    public void setSettleDate(LocalDate settleDate) {
        this.settleDate = settleDate;
    }

    public List<Coupon> getCouponList() {
        return couponList;
    }

    public void setCouponList(List<Coupon> couponList) {
        this.couponList = couponList;
    }
}
